﻿namespace Sidvall.AuthorizationManager.Data
{
	public class ClaimItemCollection : System.Collections.ObjectModel.Collection<ClaimItem>
	{
		#region Public Members

		#region GetDescription

		public string GetDescription()
		{
			string value = string.Empty;
			foreach (var item in this)
			{
				if (!string.IsNullOrWhiteSpace(value))
					value += ", ";
				value += item.Value;
			}
			return value;
		}

		#endregion

		#endregion
		#region Constructors

		public ClaimItemCollection()
		{
		}

		#endregion
	}
}
